//
//  StyleCollectionViewCell.m
//  ALFashion
//
//  Created by dengzhicheng on 15/6/17.
//  Copyright (c) 2015年 dengzhicheng. All rights reserved.
//

#import "StyleCollectionViewCell.h"

@implementation StyleCollectionViewCell

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        
        self.image = [[UIImageView alloc] initWithFrame:self.contentView.frame];
        [self.image setUserInteractionEnabled:YES];
        [self.contentView addSubview:self.image];
        
        self.likeButton = [[UIButton alloc] initWithFrame:CGRectMake(self.contentView.frame.size.width - 65, self.contentView.frame.size.height - 30, 80, 25)];
        [self.likeButton setBackgroundColor:[UIColor colorWithRed:0 green:0 blue:0 alpha:0.5]];
        self.likeButton.layer.cornerRadius = 5;
        self.likeButton.clipsToBounds = YES;
        [self.contentView addSubview:self.likeButton];
        
        UIButton *like = [[UIButton alloc] initWithFrame:CGRectMake(5, 5, 15, 15)];
        [like setImage:[UIImage imageNamed:@"like.png"] forState:UIControlStateNormal];
        [self.likeButton addSubview:like];
        
    }
    return self;
}
@end
